package esya;

import java.io.*;
import java.sql.SQLException;

public class ReadWrite {
	
	public void readwrite() throws IOException, ClassNotFoundException, SQLException{			
		
		ProcessInp pi=new ProcessInp();
		
		File inFile=new File("E:\\1.txt");
		File outFile=new File("E:\\2.txt");
		
		BufferedReader br = new BufferedReader(new FileReader(inFile));
		BufferedWriter bw = new BufferedWriter(new FileWriter(outFile));
		
		String s1=br.readLine();
		
		br.close();
		
		String reply=pi.process(s1);
		//String reply=pi.process(s);
		System.out.println(reply);
		
		bw.write(reply);
		bw.close();
	}

}
